package shayu.cat.service;

import shayu.cat.vo.CartItemVo;
import shayu.cat.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService{

    CartItemVo addToCart(Long skuId,Integer num) throws ExecutionException, InterruptedException;

    CartVo getCart();

    void clearCart(String cartKey);

    void checkItem(Long skuId, Integer checked);

    void changeItemCount(Long skuId, Integer num);

    CartItemVo getCartItem(Long skuId);

    void deleteItem(Long skuId);

    List<CartItemVo> getUserCartItems();

}
